﻿@model Bricks.Site.Models.UserView

@{
    ViewBag.Title = "用户编辑";
    //Layout = "~/Views/Shared/_UserPage.cshtml";
}
@*<script src="~/Res/kindeditor/kindeditor-all-min.js"></script>*@
<!--引入KindEditor的JS-->

<script type="text/javascript">
    //$(function () {
    //    //$.EditorInit("#richEditor", 500, "p", true);  //初始化KindEditor
    //})
</script>

@*<textarea id="richEditor" name="Content">richEditor Content</textarea>*@
<!--Textarea文本框-->

<div class="easyui-panel" title="用户信息">
    <div class="frombox datagrid-body" style="padding-bottom: 5px;">
        <form id="form-model" method="post">
            <table class="datagrid-btable" border="0" cellspacing="0" cellpadding="0" width="100%">
                <tr class="datagrid-row">
                    <td class="th">
                        <div class="datagrid-cell">用户名</div>
                    </td>
                    <td class="td">
                        <div class="datagrid-cell">
                            <input name="UserName" class="easyui-validatebox" data-options="required:true" value="@Model.UserName" />
                        </div>
                    </td>
                </tr>
                @*<tr class="datagrid-row">
                        <td class="th">
                            <div class="datagrid-cell">密码</div>
                        </td>
                        <td class="td">
                            <div class="datagrid-cell">
                                <input type="password" name="Password" class="easyui-textbox" value="@Model.Password" />
                            </div>
                        </td>
                    </tr>
                    <tr class="datagrid-row">
                        <td class="th">
                            <div class="datagrid-cell">确认密码</div>
                        </td>
                        <td class="td">
                            <div class="datagrid-cell">
                                <input type="password" name="ConfirmPassword" class="easyui-textbox" value="@Model.ConfirmPassword" />
                            </div>
                        </td>
                    </tr>*@
                <tr class="datagrid-row">
                    <td class="th">
                        <div class="datagrid-cell">姓名</div>
                    </td>
                    <td class="td">
                        <div class="datagrid-cell">
                            <input name="RealName" class="easyui-textbox" value="@Model.RealName" />
                        </div>
                    </td>
                </tr>
                <tr class="datagrid-row">
                    <td class="th">
                        <div class="datagrid-cell">职务</div>
                    </td>
                    <td class="td">
                        <div class="datagrid-cell">
                            <input name="Position" class="easyui-validatebox" value="@Model.Position" />
                        </div>
                    </td>
                </tr>
                <tr class="datagrid-row">
                    <td class="th">
                        <div class="datagrid-cell">邮箱</div>
                    </td>
                    <td class="td">
                        <div class="datagrid-cell">
                            <input name="Email" class="easyui-validatebox" data-options="validType:'email'" value="@Model.Email" />
                        </div>
                    </td>
                </tr>
                <tr class="datagrid-row">
                    <td class="th">
                        <div class="datagrid-cell">联系电话</div>
                    </td>
                    <td class="td">
                        <div class="datagrid-cell">
                            <input name="Contactphone" class="easyui-textbox" value="@Model.Contactphone" />
                        </div>
                    </td>
                </tr>
                <tr class="datagrid-row">
                    <td class="th">
                        <div class="datagrid-cell">用户类型</div>
                    </td>
                    <td class="td">
                        <div class="datagrid-cell">
                            <input id="UserTypeNum" name="UserTypeNum" class="easyui-combobox" value="@Model.UserTypeNum" />
                        </div>
                    </td>
                </tr>
                <tr class="datagrid-row">
                    <td class="th">
                        <div class="datagrid-cell">所属机构</div>
                    </td>
                    <td class="td">
                        <div class="datagrid-cell">
                            <input id="OrgID" name="OrgID" class="easyui-combobox" value="@Model.OrgID" />
                        </div>
                    </td>
                </tr>
                <tr class="datagrid-row">
                    <td class="th">
                        <div class="datagrid-cell">权限管理员</div>
                    </td>
                    <td class="td">
                        <div class="datagrid-cell">
                            @*<input name="IsDeleted" type="checkbox" checked="@Model.IsDeleted" />*@
                            @Html.EditorFor(m => m.IsPurviewAdmin)
                        </div>
                    </td>
                </tr>
                <tr class="datagrid-row">
                    <td class="th">
                        <div class="datagrid-cell">分发管理员</div>
                    </td>
                    <td class="td">
                        <div class="datagrid-cell">
                            @*<input name="IsDeleted" type="checkbox" checked="@Model.IsDeleted" />*@
                            @Html.EditorFor(m => m.IsHandoutAdmin)
                        </div>
                    </td>
                </tr>
                <tr class="datagrid-row">
                    <td class="th">
                        <div class="datagrid-cell">流程审批人</div>
                    </td>
                    <td class="td">
                        <div class="datagrid-cell">
                            @*<input name="IsDeleted" type="checkbox" checked="@Model.IsDeleted" />*@
                            @Html.EditorFor(m => m.IsFlowApprovalPerson)
                        </div>
                    </td>
                </tr>
                <tr class="datagrid-row">
                    <td class="th">
                        <div class="datagrid-cell">描述</div>
                    </td>
                    <td class="td">
                        <div class="datagrid-cell">
                            <input name="Description" class="easyui-textbox" value="@Model.Description" />
                        </div>
                    </td>
                </tr>
                <tr class="datagrid-row">
                    <td class="th">
                        <div class="datagrid-cell">禁用用户</div>
                    </td>
                    <td class="td">
                        <div class="datagrid-cell">
                            @*<input name="IsDeleted" type="checkbox" checked="@Model.IsDeleted" />*@
                            @Html.EditorFor(m => m.IsDeleted)
                        </div>
                    </td>
                </tr>
                @*<tr class="datagrid-row">
                        <td class="th">
                            <div class="datagrid-cell">提示</div>
                        </td>
                        <td class="td">
                            <div class="datagrid-cell">
                                <label style="color: blue;">编辑状态下，密码为空则不修改密码</label>
                            </div>
                        </td>
                    </tr>*@
            </table>
            <input id="ID" name="ID" type="hidden" value="@Model.ID" />
            <input id="Password" name="Password" type="hidden" value="@Model.Password" />
            <input name="AddDate" type="hidden" value="@Model.AddDate" />
            <input id="OldOrgID" name="OldOrgID" type="hidden" value="@Model.OldOrgID" />
        </form>
    </div>
</div>
